De-Duplicate List
(5 actions, 5 KB)
0 Set Dictionary Value for
input
to
[Shortcut Input]
in
»
1 Text »
let dict = {'output':[...new Set(
[0 Dictionary]
.input)]} document.write(encodeURIComponent(JSON.stringify(dict)))
2 Run Shortcut
Run JavaScript Code
»
Input
:
[1 Text]
Workflow
:
{ "workflowIdentifier": "E2CEB2A0-A1D2-4040-B3D2-804B9C84CAE8", "workflowName": "Run JavaScript Code", "isSelf": false }
3 Get Dictionary Value for
output
in
[2 Shortcut Result]
»
4 Stop and Output
[3 Dictionary Value]